import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '*',
      redirect: '/user'
    },
    {
      path: '/user',
      name: '员工管理',
      component: resolve => require(['../views/user-info'], resolve)
    },
    {
      path: '/table',
      name: '报表信息',
      component: resolve => require(['../views/table-info'], resolve)
    },
    {
      path: '/message',
      name: '留言信息',
      component: resolve => require(['../views/message-info'], resolve)
    },
    {
      path: '/logs',
      name: '日志信息',
      component: resolve => require(['../views/log-info'], resolve)
    }
  ]
});
